let init = {
  oppNum: 10,
  supNum: 5,
  num: 100,
}

export default function voteReducer(state = init, action) {
  state = { ...state }
  switch (action.type) {
    case 'VOTE_SUP':
      state.supNum++
      break;
    case 'VOTE_OPP':
      state.oppNum++;
      break;
    default:
  }

  return state
}